The TextField Component > FTextField.showScrollBar() |
FTextField.showScrollBar()
Availability
Flash Player 6.
Usage
myTextField_txf.showScrollBar (position)
Parameters
position A String specifying if and where scroll
bars should appear within the component. Valid values are "horizontal", "vertical",
"both" and "none".
Returns
Nothing
Description
Allows the developer to have scrollbars attached to the text field. Valid values are:
horizontal |
The scrollbar will appear at the bottom of the text field. |
vertical |
The scrollbar will appear on the right side of the text field. |
both |
Scrollbars will appear on the bottom of, and on the right side of the text field. |
none |
No scrollbars will be displayed. |
Example
The text_example1.fla example file contains an example of using this method.
The following code shows both the horizontal and vertical scrollbars.
myTextField_txf.showScrollBar("both");